﻿namespace zijian666.Data;

/// <summary>
/// 事务拦截上下文
/// </summary>
public class DbTransactionInterceptorContext(IDbConnection conn, CancellationToken cancellationToken)
    : DbInterceptorContext(conn, Stopwatch.GetTimestamp(), cancellationToken)
{
    public IDbTransaction? Transaction { get; init; }
    public TransactionScope? TransactionScope { get; init; }
    public System.Transactions.IsolationLevel? IsolationLevel { get; init; }
}
